package com.gxcc3.ygps.web.controller.iot;


import com.gxcc3.ygps.common.core.controller.BaseController;
import com.gxcc3.ygps.common.core.domain.entity.SysIotCar;
import com.gxcc3.ygps.common.core.domain.entity.SysIotReportDevice;
import com.gxcc3.ygps.common.core.domain.entity.SysIotStorage;
import com.gxcc3.ygps.common.core.page.TableDataInfo;
import com.gxcc3.ygps.system.service.ISysIotReportDeviceService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 物联感知 已上报设备管理
 */
@RestController
@RequestMapping("/iot/report/device/")
public class SysIotReportDeviceController extends BaseController {


    @Resource
    ISysIotReportDeviceService reportDeviceService;


    /**
     * 车辆列表
     */
    @PreAuthorize("@ss.hasPermi('iot:device:list')")
    @GetMapping("/list")
    public TableDataInfo list(SysIotReportDevice device)
    {
        startPage();
        device.setCompanyId(getCompanyId());
        List<SysIotReportDevice> list = reportDeviceService.selectReportDeviceList(device);
        return getDataTable(list);
    }

}
